package org.phantom.securityframework.api.domain;

import java.util.List;

import org.phantom.securityframework.api.util.AuthUtil;
/**
 * 角色
 * @author david
 *
 */
public class Role {
	private Integer id;
	private String roleName;
	private String roleDesc;
	private String createDate;
	@SuppressWarnings("unused")
	private String platformId;
	private String lastModifyDate;
	
	private List<Account> accounts;
	private List<Permission> permissions;
	
	
	public Integer getId() {
		return id;
	}
	public void setId(Integer id) {
		this.id = id;
	}
	public String getRoleName() {
		return roleName;
	}
	public void setRoleName(String roleName) {
		this.roleName = roleName;
	}
	public String getRoleDesc() {
		return roleDesc;
	}
	public void setRoleDesc(String roleDesc) {
		this.roleDesc = roleDesc;
	}
	public String getCreateDate() {
		return createDate;
	}
	public void setCreateDate(String createDate) {
		this.createDate = createDate;
	}
	public String getLastModifyDate() {
		return lastModifyDate;
	}
	public void setLastModifyDate(String lastModifyDate) {
		this.lastModifyDate = lastModifyDate;
	}
	public List<Account> getAccounts() {
		return accounts;
	}
	public void setAccounts(List<Account> accounts) {
		this.accounts = accounts;
	}
	public List<Permission> getPermissions() {
		return permissions;
	}
	public void setPermissions(List<Permission> permissions) {
		this.permissions = permissions;
	}
	public String getPlatformId() {
		return AuthUtil.getPlatformId();
	}
	
	
	
}
